package com.ml.loan.common.constants;

import lombok.Getter;

public class DataCenterConstant {

    public enum URLS {
        //
        USER_LOGIN_URL(0, "登陆接口", "/api/User/UserLogin?format=json"),
        IDCARD_NAME_AUTH_URL(0, "二要素验证", "/api/Data/CheckIdCardNameAuth?format=json"),
        IDCARD_NAME_PHONE_CARD_URL(0, "四要素验证", "/api/Data/CheckIdCardNamePhoneCardAuth?format=json"),
        GET_IP_INFO(0, "IP归属地信息", "/api/Data/GetIpInfo?format=json"),
        GET_PHONENUM_INFO(0, "手机归属地信息", "/api/Data/GetPhoneNumInfo?format=json"),
        CHECK_SINGLEBLACK_PHONENUM(0, "手机黑名单校验", "/api/Data/CheckSingleBlackPhoneNum?format=json"),
        TRANS_SIGNAL_COM_MSG(0, "查询信贷经理列表", "/api/Data/TransSignalComMsg?format=json"),
        CHECK_USER_HASAPPLY(0, "校验是否为微店重复订单", "/api/Data/CheckUserHasApply?format=json"),
        REMOVE_CREDIT_ORDER(1, "取消抢单订单", "/api/Data/RemoveCreditOrder?format=json"),
        ADD_CREDIT_ORDER_NEWSERVICE(0, "抢单订单推单", "/api/Data/AddCreditOrderNewService?format=json"),
        FETCH_ORDER_SCORE_INFO(1, "订单评分接口", "/api/Data/FetchOrderScoreInfo?format=json"),
        CHECK_CAN_APPLY(0, "信贷员订单入库检测", "/api/Data/CheckCanApply?format=json"),
        ;

        /**
         * type: 0数据中心 1订单中心
         */
        @Getter
        private Integer type;
        @Getter
        private String name;
        @Getter
        private String url;

        URLS(Integer type, String name, String url) {
            this.type = type;
            this.name = name;
            this.url = url;
        }
    }
}
